# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnote
pkgver=3.36.2
pkgrel=1
pkgdesc="Gnote is a port of Tomboy to C++"
url="https://wiki.gnome.org/Apps/Gnote"
arch="all !s390x" # error: 'convert_return_gchar_ptr_to_stdstring' is not a member of 'Glib'
license="GPL-3.0-or-later"
depends="dbus:org.freedesktop.Secrets"
makedepends="gtk+3.0-dev glibmm-dev gtkmm3-dev libsecret-dev gspell-dev
	libxslt-dev util-linux-dev intltool itstool desktop-file-utils"
options="!check" # missing dep: unittestcpp
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnote/${pkgver%.*}/gnote-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6d2e32954836b4ac2800071385eedd6ad391936ee52626b7d51b077e4b4a3e071149804281e645b0fd88dc18e9f3c0f8d53e0994d33875ce5375d6b50b14d5e1  gnote-3.36.2.tar.xz"
